import { getToken } from "@/utils/Cookie"
export default {
  state: {
    token: getToken(),
    userInfo: {},
    // baseInfo:{},  //基础必备用户信息
    // task_queue:'',  //是否开启自动接单
  },

  mutations: {

    // setBaseInfo_task_queue(state,data){
    //   state.baseInfo.task_queue = data
    //   localStorage.setItem('baseInfo',this.baseInfo)
    // }

  },
  actions: {
    // async getBaseInfo() {
      // let baseInfo = this.$store.state.user.baseInfo || localStorage.getItem('baseInfo')
      // v-if="Object.keys($b).length >0"
    // }
    // localStorage.setItem("token", res.token);
    // localStorage.setItem( "baseInfo", JSON.stringify(res.baseInfo) ); var data1 = JSON.parse(localStorage.getItem('hou'));
    // localStorage.setItem( "task_queue", res.baseInfo.task_queue );


  }



}
